pub trait DirConnectable:
Send
+ Sync
+ Debug {
// Required methods
fn maximum_flags(&self) -> Flags;
fn send(
&self,
dir: ServerEnd<DirectoryMarker>,
subdir: RelativePath,
flags: Option<Flags>,
) -> Result<(), ()>;
}Expand description
Types that implement DirConnectable let the holder send directory channels
to them. Any DirConnectable should be wrapped in a DirConnector.
Required Methods§
Sourcefn 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.
The following flags are always permitted, regardless of the returned value:
fidl_fuchsia_io::Flags::PROTOCOL_SERVICEfidl_fuchsia_io::Flags::PROTOCOL_NODEfidl_fuchsia_io::Flags::PROTOCOL_DIRECTORYfidl_fuchsia_io::Flags::PROTOCOL_FILEfidl_fuchsia_io::Flags::PROTOCOL_SYMLINKfidl_fuchsia_io::Flags::FLAG_SEND_REPRESENTATIONfidl_fuchsia_io::Flags::FLAG_MAYBE_CREATEfidl_fuchsia_io::Flags::FLAG_MUST_CREATEfidl_fuchsia_io::Flags::FLAG_CREATE_AS_UNNAMED_TEMPORARYfidl_fuchsia_io::Flags::FILE_APPENDfidl_fuchsia_io::Flags::FILE_TRUNCATE
If the returned value does not contain the set of flags
fidl_fuchsia_io::INHERITED_WRITE_PERMISSIONS, then
fidl_fuchsia_io::Flags::PERM_INHERIT_WRITE will be stripped from any flags passed to
send if it is set.
If the returned value does not contain the flag
fidl_fuchsia_io::Flags::PERM_INHERIT_EXECUTE, then fidl_fuchsia_io::Flags::PERM_EXECUTE
will be stripped from any flags passed to send if it is set.