pub struct FileWriteOption(/* private fields */);Implementations§
Source§impl FileWriteOption
impl FileWriteOption
Sourcepub const fn from(val: u32) -> Self
pub const fn from(val: u32) -> Self
Creates a FileWriteOption from the underlying base type u32
Sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Checks if the provided FileWriteOption has all of the set bits in other are set in self
Sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Checks if the provided FileWriteOption has any common bits with other
Trait Implementations§
Source§impl BitAnd for FileWriteOption
impl BitAnd for FileWriteOption
Source§impl BitAndAssign for FileWriteOption
impl BitAndAssign for FileWriteOption
Source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Performs the
&= operation. Read moreSource§impl BitOr for FileWriteOption
impl BitOr for FileWriteOption
Source§impl BitOrAssign for FileWriteOption
impl BitOrAssign for FileWriteOption
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the
|= operation. Read moreSource§impl Clone for FileWriteOption
impl Clone for FileWriteOption
Source§fn clone(&self) -> FileWriteOption
fn clone(&self) -> FileWriteOption
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileWriteOption
impl Debug for FileWriteOption
Source§impl Default for FileWriteOption
impl Default for FileWriteOption
Source§fn default() -> FileWriteOption
fn default() -> FileWriteOption
Returns the “default value” for a type. Read more
Source§impl Not for FileWriteOption
impl Not for FileWriteOption
Source§impl PartialEq for FileWriteOption
impl PartialEq for FileWriteOption
Source§impl RequestCommandParameter<'_, FileWriteOption> for FileWriteOption
impl RequestCommandParameter<'_, FileWriteOption> for FileWriteOption
fn after_request_read(ctx: &mut ServerContext<'_>) -> Result<Self>
Source§impl RequestCommandParameter for FileWriteOption
impl RequestCommandParameter for FileWriteOption
fn before_request_write( _raw: &Self, walker: &mut DataWalker, ctx: &mut CommandContext, ) -> Result<()>
fn before_send_sync_request( raw: &Self, walker: &mut DataWalker, ctx: &mut CommandContext, ) -> Result<()>
Source§impl ResponseCommandParameter<FileWriteOption> for FileWriteOption
impl ResponseCommandParameter<FileWriteOption> for FileWriteOption
fn after_response_read( walker: &mut DataWalker, ctx: &mut CommandContext, ) -> Result<Self>
Source§impl ResponseCommandParameter for FileWriteOption
impl ResponseCommandParameter for FileWriteOption
type CarryState = ()
fn before_response_write( _raw: &Self, ctx: &mut ServerContext<'_>, ) -> Result<Self::CarryState>
fn after_response_write( raw: Self, _carry_state: Self::CarryState, ctx: &mut ServerContext<'_>, ) -> Result<()>
impl Copy for FileWriteOption
impl Eq for FileWriteOption
impl StructuralPartialEq for FileWriteOption
Auto Trait Implementations§
impl Freeze for FileWriteOption
impl RefUnwindSafe for FileWriteOption
impl Send for FileWriteOption
impl Sync for FileWriteOption
impl Unpin for FileWriteOption
impl UnwindSafe for FileWriteOption
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
§impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
§impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.