pub struct Node {
pub can_multibind_composites: bool,
/* private fields */
}Fields§
§can_multibind_composites: boolImplementations§
Source§impl Node
impl Node
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
impl Node
pub async fn complete_bind(self: &Rc<Self>, result: Result<(), Status>)
pub fn restart_node_with_rematch( self: &Rc<Self>, restart_driver_url_suffix: Option<String>, completer: Sender<Result<(), Status>>, )
pub fn restart_node(self: &Rc<Self>)
Source§impl Node
impl Node
pub fn new_composite( name: &str, parents: Vec<Weak<Node>>, parents_names: Vec<String>, primary_index: u32, node_manager: Box<dyn NodeManager>, ) -> Rc<Self>
pub fn create_composite_offer( offer: &NodeOffer, parents_name: &str, primary_parent: bool, ) -> NodeOffer
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>
pub fn set_composite_parent_properties( &self, parent_properties: &[NodePropertyEntry], )
pub fn remove_composite_node_for_rebind( self: &Rc<Self>, completer: Sender<Result<(), Status>>, )
Source§impl Node
impl Node
pub fn setup_devfs_for_root_node(&self, root: TopologicalDevnode)
Source§impl Node
impl Node
pub fn new( name: &str, parent: Weak<Node>, node_manager: Box<dyn NodeManager>, ) -> Rc<Self>
pub fn name(&self) -> &str
pub fn token_koid(&self) -> Option<Koid>
pub fn make_topological_path(&self, deduplicate: bool) -> String
pub fn on_match_error(&self, error: Status)
pub fn on_start_error(&self, error: Status)
pub fn mark_as_composite_parent(&self)
pub fn unmark_as_composite_parent(&self)
pub fn make_component_moniker(&self) -> String
pub fn children(&self) -> Vec<Rc<Node>>
pub fn parents(&self) -> Vec<Weak<Node>>
pub fn driver_url(&self) -> String
pub fn is_quarantined(&self) -> bool
pub fn get_primary_parent(&self) -> Option<Rc<Node>>
pub fn get_bus_topology(&self) -> Vec<BusInfo>
pub fn get_node_properties( &self, parent_name: Option<&str>, ) -> Option<Vec<NodeProperty2>>
pub fn driver_host(&self) -> Option<Rc<dyn DriverHost>>
pub fn is_composite(&self) -> bool
pub fn is_bound(&self) -> bool
pub fn evaluate_rematch_flags( &self, rematch_flags: RestartRematchFlags, url: &str, ) -> bool
pub fn set_subtree_dictionary(&self, dictionary: CapabilityId)
pub fn remove_subtree_dictionary(&self)
pub fn has_subtree_dictionary(&self) -> bool
pub fn skip_injected_offers(&self) -> bool
pub async fn prepare_dictionary(&self) -> Option<DictionaryRef>
pub fn remove( self: &Rc<Self>, removal_set: RemovalSet, removal_tracker: Option<Weak<RefCell<NodeRemovalTracker>>>, )
pub fn weak_from_this(&self) -> Weak<Self>
pub fn collection(&self) -> Collection
pub fn set_collection(&self, collection: Collection)
pub fn set_driver_package_type(&self, package_type: DriverPackageType)
pub fn set_driver_host_name_for_colocation(&self, name: &str)
pub fn node_type(&self) -> Ref<'_, NodeTypeVariant>
pub fn symbols(&self) -> Vec<NodeSymbol>
pub fn offers(&self) -> Vec<NodeOffer>
pub fn token_handle(&self) -> Option<Event>
pub fn has_component_controller_proxy(&self) -> bool
pub fn has_driver(&self) -> bool
pub fn has_driver_component(&self) -> bool
Source§impl Node
impl Node
pub async fn set_created_info( self: &Rc<Self>, proxy: ControllerProxy, handle_info: HandleInfo, receiver: StartRequestReceiver, )
Source§impl Node
impl Node
pub async fn send_start_request(&self) -> Result<(), Status>
pub async fn get_next_start_request( &self, ) -> Result<(ComponentStartInfo, ServerEnd<ComponentControllerMarker>), Status>
pub async fn start_driver( self: &Rc<Self>, start_info: ComponentStartInfo, controller: ServerEnd<ComponentControllerMarker>, ) -> Result<(), Status>
Trait Implementations§
Source§impl ShutdownNode for Node
impl ShutdownNode for Node
fn get_shutdown_coordinator(&self) -> RefMut<'_, NodeShutdownCoordinator>
fn name(&self) -> &str
fn finish_shutdown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn schedule_post_shutdown(&self, intent: ShutdownIntent)
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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