Enum zx::SocketWriteDisposition
source · pub enum SocketWriteDisposition {
Enabled,
Disabled,
}
Expand description
Write disposition to set on a zircon socket with zx_socket_set_disposition.
Variants§
Enabled
Corresponds to ZX_SOCKET_DISPOSITION_WRITE_ENABLED
.
Disabled
Corresponds to ZX_SOCKET_DISPOSITION_WRITE_DISABLED
.
Implementations§
source§impl SocketWriteDisposition
impl SocketWriteDisposition
sourcepub fn from_raw(raw: u32) -> Result<Option<SocketWriteDisposition>, Status>
pub fn from_raw(raw: u32) -> Result<Option<SocketWriteDisposition>, Status>
Get a SocketWriteDisposition
from the raw u32
argument passed to
zx_socket_set_disposition.
Trait Implementations§
source§impl Clone for SocketWriteDisposition
impl Clone for SocketWriteDisposition
source§fn clone(&self) -> SocketWriteDisposition
fn clone(&self) -> SocketWriteDisposition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SocketWriteDisposition
impl Debug for SocketWriteDisposition
source§impl From<SocketWriteDisposition> for u32
impl From<SocketWriteDisposition> for u32
source§fn from(disposition: SocketWriteDisposition) -> Self
fn from(disposition: SocketWriteDisposition) -> Self
Converts to this type from the input type.
source§impl PartialEq for SocketWriteDisposition
impl PartialEq for SocketWriteDisposition
source§fn eq(&self, other: &SocketWriteDisposition) -> bool
fn eq(&self, other: &SocketWriteDisposition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SocketWriteDisposition
impl Eq for SocketWriteDisposition
impl StructuralPartialEq for SocketWriteDisposition
Auto Trait Implementations§
impl Freeze for SocketWriteDisposition
impl RefUnwindSafe for SocketWriteDisposition
impl Send for SocketWriteDisposition
impl Sync for SocketWriteDisposition
impl Unpin for SocketWriteDisposition
impl UnwindSafe for SocketWriteDisposition
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)