pub struct Connection<N: Node> { /* private fields */ }
Expand description
Represents a FIDL (limited) node connection.
Implementations§
Source§impl<N: Node> Connection<N>
impl<N: Node> Connection<N>
pub fn create( scope: ExecutionScope, node: Arc<N>, options: impl ToNodeOptions, object_request: ObjectRequestRef<'_>, ) -> Result<impl Future<Output = ()>, Status>
Trait Implementations§
Source§impl<N: Node> Representation for Connection<N>
impl<N: Node> Representation for Connection<N>
Source§type Protocol = NodeMarker
type Protocol = NodeMarker
The protocol used for the connection.
Source§async fn get_representation(
&self,
requested_attributes: NodeAttributesQuery,
) -> Result<Representation, Status>
async fn get_representation( &self, requested_attributes: NodeAttributesQuery, ) -> Result<Representation, Status>
Returns io2’s Representation for the object.
Auto Trait Implementations§
impl<N> Freeze for Connection<N>
impl<N> !RefUnwindSafe for Connection<N>
impl<N> Send for Connection<N>
impl<N> Sync for Connection<N>
impl<N> Unpin for Connection<N>
impl<N> !UnwindSafe for Connection<N>
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