vfs::service

Trait ServiceLike

Source
pub trait ServiceLike: Node {
    // Required method
    fn connect(
        &self,
        scope: ExecutionScope,
        options: ServiceOptions,
        object_request: ObjectRequestRef<'_>,
    ) -> Result<(), Status>;
}
Expand description

Objects that behave like services should implement this trait.

Required Methods§

Source

fn connect( &self, scope: ExecutionScope, options: ServiceOptions, object_request: ObjectRequestRef<'_>, ) -> Result<(), Status>

Used to establish a new connection.

Implementors§