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
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§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
)