Struct fidl_fuchsia_io::DirectoryOpen2Request
source · pub struct DirectoryOpen2Request {
pub path: String,
pub protocols: ConnectionProtocols,
pub object_request: Channel,
}
Fields§
§path: String
Identifies the node to open.
If it contains multiple segments, then the directory is traversed one segment at a time, relative to the directory represented by this connection.
protocols: ConnectionProtocols
The representations accepted by the caller to support a form of protocol negotiation on the node being opened.
object_request: Channel
The server end of a channel created for the new connection. The caller may proceed to send messages on the corresponding client end right away.
Trait Implementations§
source§impl Debug for DirectoryOpen2Request
impl Debug for DirectoryOpen2Request
source§impl Decode<DirectoryOpen2Request, DefaultFuchsiaResourceDialect> for DirectoryOpen2Request
impl Decode<DirectoryOpen2Request, DefaultFuchsiaResourceDialect> for DirectoryOpen2Request
source§impl Encode<DirectoryOpen2Request, DefaultFuchsiaResourceDialect> for &mut DirectoryOpen2Request
impl Encode<DirectoryOpen2Request, DefaultFuchsiaResourceDialect> for &mut DirectoryOpen2Request
source§impl<T0: Encode<BoundedString<4095>, DefaultFuchsiaResourceDialect>, T1: Encode<ConnectionProtocols, DefaultFuchsiaResourceDialect>, T2: Encode<HandleType<Channel, { _ }, 2147483648>, DefaultFuchsiaResourceDialect>> Encode<DirectoryOpen2Request, DefaultFuchsiaResourceDialect> for (T0, T1, T2)
impl<T0: Encode<BoundedString<4095>, DefaultFuchsiaResourceDialect>, T1: Encode<ConnectionProtocols, DefaultFuchsiaResourceDialect>, T2: Encode<HandleType<Channel, { _ }, 2147483648>, DefaultFuchsiaResourceDialect>> Encode<DirectoryOpen2Request, DefaultFuchsiaResourceDialect> for (T0, T1, T2)
source§impl PartialEq for DirectoryOpen2Request
impl PartialEq for DirectoryOpen2Request
source§fn eq(&self, other: &DirectoryOpen2Request) -> bool
fn eq(&self, other: &DirectoryOpen2Request) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ResourceTypeMarker for DirectoryOpen2Request
impl ResourceTypeMarker for DirectoryOpen2Request
§type Borrowed<'a> = &'a mut DirectoryOpen2Request
type Borrowed<'a> = &'a mut DirectoryOpen2Request
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moresource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
Cheaply converts from
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).source§impl TypeMarker for DirectoryOpen2Request
impl TypeMarker for DirectoryOpen2Request
§type Owned = DirectoryOpen2Request
type Owned = DirectoryOpen2Request
The owned Rust type which this FIDL type decodes into.
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.impl Standalone<DefaultFuchsiaResourceDialect> for DirectoryOpen2Request
impl StructuralPartialEq for DirectoryOpen2Request
Auto Trait Implementations§
impl Freeze for DirectoryOpen2Request
impl RefUnwindSafe for DirectoryOpen2Request
impl Send for DirectoryOpen2Request
impl Sync for DirectoryOpen2Request
impl Unpin for DirectoryOpen2Request
impl UnwindSafe for DirectoryOpen2Request
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