pub struct DirConnector {
pub handle: EventPair,
pub capabilities_proxy: CapabilitiesProxy,
}Expand description
A dir connector can be invoked to send a fuchsia.io open request to the creator of the dir connector.
Fields§
§handle: EventPairThe handle that references this capability
capabilities_proxy: CapabilitiesProxyThe proxy used to create this capability, and the proxy which will be used to perform operations on this capability.
Implementations§
Source§impl DirConnector
impl DirConnector
Sourcepub async fn new() -> (Self, DirConnectorReceiver)
pub async fn new() -> (Self, DirConnectorReceiver)
Creates a new DirConnector, connecting to /svc/fuchsia.component.runtime.Capabilities
to do so.
Sourcepub async fn new_with_proxy(
capabilities_proxy: CapabilitiesProxy,
) -> (Self, DirConnectorReceiver)
pub async fn new_with_proxy( capabilities_proxy: CapabilitiesProxy, ) -> (Self, DirConnectorReceiver)
Creates a new DirConnector using the provided capabilities_proxy.
Sourcepub async fn associate_with_handle(&self, other_handle: EventPair)
pub async fn associate_with_handle(&self, other_handle: EventPair)
Associates other_handle with the same object referenced by this capability, so that
whoever holds the other end of other_handle can refer to our capability.
pub async fn connect( &self, server_end: ServerEnd<DirectoryMarker>, flags: Option<Flags>, path: Option<String>, ) -> Result<(), CapabilitiesError>
Trait Implementations§
Source§impl Clone for DirConnector
impl Clone for DirConnector
Source§impl Debug for DirConnector
impl Debug for DirConnector
Source§impl From<DirConnector> for Capability
impl From<DirConnector> for Capability
Source§fn from(val: DirConnector) -> Self
fn from(val: DirConnector) -> Self
Converts to this type from the input type.
Source§impl TryFrom<Capability> for DirConnector
impl TryFrom<Capability> for DirConnector
Auto Trait Implementations§
impl Freeze for DirConnector
impl !RefUnwindSafe for DirConnector
impl Send for DirConnector
impl Sync for DirConnector
impl Unpin for DirConnector
impl !UnwindSafe for DirConnector
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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]