pub struct DirConnector { /* private fields */ }Expand description
A capability to obtain a channel to a [fuchsia.io/Directory]. As the name suggests, this is
similar to [Connector], except the channel type is always [fuchsia.io/Directory], and vfs
nodes that wrap this capability should have the DIRECTORY entry_type.
Implementations§
Source§impl DirConnector
impl DirConnector
pub fn new() -> (DirReceiver, Arc<Self>)
pub fn from_proxy( proxy: DirectoryProxy, subdir: RelativePath, flags: Flags, ) -> Arc<Self> ⓘ
pub fn new_sendable(connector: impl DirConnectable + 'static) -> Arc<Self> ⓘ
pub fn send( &self, dir: ServerEnd<DirectoryMarker>, subdir: RelativePath, flags: Option<Flags>, ) -> Result<(), ()>
pub fn with_subdir(self: Arc<Self>, subdir: RelativePath) -> Arc<Self> ⓘ
Source§impl DirConnector
impl DirConnector
pub fn from_directory_entry( directory_entry: Arc<dyn DirectoryEntry>, flags: Flags, ) -> Arc<Self> ⓘ
Trait Implementations§
Source§impl CapabilityBound for DirConnector
impl CapabilityBound for DirConnector
fn debug_typename() -> &'static str
Source§fn try_into_directory_entry(
self: Arc<Self>,
_scope: ExecutionScope,
_token: Arc<WeakInstanceToken>,
) -> Result<Arc<dyn DirectoryEntry>, ConversionError>
fn try_into_directory_entry( self: Arc<Self>, _scope: ExecutionScope, _token: Arc<WeakInstanceToken>, ) -> Result<Arc<dyn DirectoryEntry>, ConversionError>
Converts this capability into a directory entry. Read more
Source§impl Debug for DirConnector
impl Debug for DirConnector
Source§impl DirConnectable for DirConnector
impl DirConnectable for DirConnector
Source§fn maximum_flags(&self) -> Flags
fn maximum_flags(&self) -> Flags
Returns the maximum set of flags that may be passed to this DirConnectable. For example, to
disallow calling
send with write permissions, this function could return
fidl_fuchsia_io::PERM_READABLE. Read morefn send( &self, channel: ServerEnd<DirectoryMarker>, subdir: RelativePath, flags: Option<Flags>, ) -> Result<(), ()>
Auto Trait Implementations§
impl Freeze for DirConnector
impl !RefUnwindSafe for DirConnector
impl Send for DirConnector
impl Sync for DirConnector
impl Unpin for DirConnector
impl UnsafeUnpin 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, 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<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
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