Struct syncio::OpenOptions
source · pub struct OpenOptions {
pub node_protocols: Option<NodeProtocols>,
pub mode: CreationMode,
pub rights: Operations,
pub create_attr: Option<zxio_node_attr>,
}
Expand description
Options for open2.
Fields§
§node_protocols: Option<NodeProtocols>
If None, connects to a service.
mode: CreationMode
Behaviour with respect ot existence. See fuchsia.io for precise semantics.
rights: Operations
See fuchsia.io for semantics. If empty, then it is regarded as absent i.e. rights will be inherited.
create_attr: Option<zxio_node_attr>
If an object is to be created, attributes that should be stored with the object at creation time. Not all servers support all attributes.
Implementations§
source§impl OpenOptions
impl OpenOptions
sourcepub fn directory(optional_rights: Option<Operations>) -> Self
pub fn directory(optional_rights: Option<Operations>) -> Self
Returns options to open a directory.
sourcepub fn file(flags: FileProtocolFlags) -> Self
pub fn file(flags: FileProtocolFlags) -> Self
Returns options to open a file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenOptions
impl RefUnwindSafe for OpenOptions
impl !Send for OpenOptions
impl !Sync for OpenOptions
impl Unpin for OpenOptions
impl UnwindSafe for OpenOptions
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