Skip to main content

Node

Struct Node 

Source
pub struct Node {
    pub can_multibind_composites: bool,
    /* private fields */
}

Fields§

§can_multibind_composites: bool

Implementations§

Source§

impl Node

Source

pub async fn add_child( self: &Rc<Self>, args: NodeAddArgs, controller: Option<ServerEnd<NodeControllerMarker>>, node: Option<ServerEnd<NodeMarker>>, ) -> Result<Rc<Node>, NodeError>

Source§

impl Node

Source

pub async fn complete_bind(self: &Rc<Self>, result: Result<(), Status>)

Source

pub fn restart_node_with_rematch( self: &Rc<Self>, restart_driver_url_suffix: Option<String>, completer: Sender<Result<(), Status>>, )

Source

pub fn restart_node(self: &Rc<Self>)

Source§

impl Node

Source

pub fn new_composite( name: &str, parents: Vec<Weak<Node>>, parents_names: Vec<String>, primary_index: u32, node_manager: Box<dyn NodeManager>, ) -> Rc<Self>

Source

pub fn create_composite_offer( offer: &NodeOffer, parents_name: &str, primary_parent: bool, ) -> NodeOffer

Source

pub fn create_composite_node( node_name: &str, parents: Vec<Weak<Node>>, parents_names: Vec<String>, parent_properties: &[NodePropertyEntry], node_manager: Box<dyn NodeManager>, driver_host_name_for_colocation: String, primary_index: u32, ) -> Result<Rc<Self>, Status>

Source

pub fn set_composite_parent_properties( &self, parent_properties: &[NodePropertyEntry], )

Source

pub fn remove_composite_node_for_rebind( self: &Rc<Self>, completer: Sender<Result<(), Status>>, )

Source§

impl Node

Source§

impl Node

Source

pub fn new( name: &str, parent: Weak<Node>, node_manager: Box<dyn NodeManager>, ) -> Rc<Self>

Source

pub fn name(&self) -> &str

Source

pub fn token_koid(&self) -> Option<Koid>

Source

pub fn make_topological_path(&self, deduplicate: bool) -> String

Source

pub fn on_match_error(&self, error: Status)

Source

pub fn on_start_error(&self, error: Status)

Source

pub fn mark_as_composite_parent(&self)

Source

pub fn unmark_as_composite_parent(&self)

Source

pub fn make_component_moniker(&self) -> String

Source

pub fn children(&self) -> Vec<Rc<Node>>

Source

pub fn parents(&self) -> Vec<Weak<Node>>

Source

pub fn driver_url(&self) -> String

Source

pub fn is_quarantined(&self) -> bool

Source

pub fn get_primary_parent(&self) -> Option<Rc<Node>>

Source

pub fn get_bus_topology(&self) -> Vec<BusInfo>

Source

pub fn get_node_properties( &self, parent_name: Option<&str>, ) -> Option<Vec<NodeProperty2>>

Source

pub fn driver_host(&self) -> Option<Rc<dyn DriverHost>>

Source

pub fn is_composite(&self) -> bool

Source

pub fn is_bound(&self) -> bool

Source

pub fn evaluate_rematch_flags( &self, rematch_flags: RestartRematchFlags, url: &str, ) -> bool

Source

pub fn set_subtree_dictionary(&self, dictionary: CapabilityId)

Source

pub fn remove_subtree_dictionary(&self)

Source

pub fn has_subtree_dictionary(&self) -> bool

Source

pub fn skip_injected_offers(&self) -> bool

Source

pub async fn prepare_dictionary(&self) -> Option<DictionaryRef>

Source

pub fn remove( self: &Rc<Self>, removal_set: RemovalSet, removal_tracker: Option<Weak<RefCell<NodeRemovalTracker>>>, )

Source

pub fn weak_from_this(&self) -> Weak<Self>

Source

pub fn collection(&self) -> Collection

Source

pub fn set_collection(&self, collection: Collection)

Source

pub fn set_driver_package_type(&self, package_type: DriverPackageType)

Source

pub fn set_driver_host_name_for_colocation(&self, name: &str)

Source

pub fn node_type(&self) -> Ref<'_, NodeTypeVariant>

Source

pub fn symbols(&self) -> Vec<NodeSymbol>

Source

pub fn offers(&self) -> Vec<NodeOffer>

Source

pub fn token_handle(&self) -> Option<Event>

Source

pub fn has_component_controller_proxy(&self) -> bool

Source

pub fn has_driver(&self) -> bool

Source

pub fn has_driver_component(&self) -> bool

Source§

impl Node

Source

pub async fn set_created_info( self: &Rc<Self>, proxy: ControllerProxy, handle_info: HandleInfo, receiver: StartRequestReceiver, )

Source§

impl Node

Source

pub async fn send_start_request(&self) -> Result<(), Status>

Source

pub async fn get_next_start_request( &self, ) -> Result<(ComponentStartInfo, ServerEnd<ComponentControllerMarker>), Status>

Source

pub async fn start_driver( self: &Rc<Self>, start_info: ComponentStartInfo, controller: ServerEnd<ComponentControllerMarker>, ) -> Result<(), Status>

Trait Implementations§

Source§

impl Drop for Node

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl ShutdownNode for Node

Source§

fn get_shutdown_coordinator(&self) -> RefMut<'_, NodeShutdownCoordinator>

Source§

fn name(&self) -> &str

Source§

fn finish_shutdown<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn schedule_post_shutdown(&self, intent: ShutdownIntent)

Source§

fn set_should_destroy_driver_component(&self, val: bool)

Auto Trait Implementations§

§

impl !Freeze for Node

§

impl !RefUnwindSafe for Node

§

impl !Send for Node

§

impl !Sync for Node

§

impl Unpin for Node

§

impl UnsafeUnpin for Node

§

impl !UnwindSafe for Node

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, D> Encode<Ambiguous1, D> for T
where D: ResourceDialect,

Source§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
Source§

impl<T, D> Encode<Ambiguous2, D> for T
where D: ResourceDialect,

Source§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> InstanceFromServiceTransport<T> for T

§

fn from_service_transport(handle: T) -> T

Converts the given service transport handle of type T to [Self]
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<E> RunsTransport<Mpsc> for E

§

impl<E> RunsTransport<Mpsc> for E
where E: RunsTransport<Mpsc>,