#[repr(u8)]pub enum OverloadOptions {
File = 0,
Sname = 1,
Both = 2,
}Expand description
Variants of option 52 in MessageOptions.
Variants§
File = 0
The 128 bytes of Message.file are used to store additional options.
Sname = 1
The 64 bytes of Message.sname are used to store additional options.
Both = 2
The 192 bytes of Message.file and Message.sname are used to store additional options.
Implementations§
Source§impl OverloadOptions
impl OverloadOptions
Sourcepub fn extend_into(&self, bytes: &mut Vec<u8>, tag: u8)
pub fn extend_into(&self, bytes: &mut Vec<u8>, tag: u8)
Used, when serializing, to add to the byte buffer.
Trait Implementations§
Source§impl Clone for OverloadOptions
impl Clone for OverloadOptions
Source§fn clone(&self) -> OverloadOptions
fn clone(&self) -> OverloadOptions
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 OverloadOptions
impl Debug for OverloadOptions
Source§impl<'de> Deserialize<'de> for OverloadOptions
impl<'de> Deserialize<'de> for OverloadOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&[u8]> for OverloadOptions
impl From<&[u8]> for OverloadOptions
Source§impl From<&OverloadOptions> for u8
impl From<&OverloadOptions> for u8
Source§fn from(mtype: &OverloadOptions) -> Self
fn from(mtype: &OverloadOptions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OverloadOptions
impl PartialEq for OverloadOptions
Source§impl Serialize for OverloadOptions
impl Serialize for OverloadOptions
impl StructuralPartialEq for OverloadOptions
Auto Trait Implementations§
impl Freeze for OverloadOptions
impl RefUnwindSafe for OverloadOptions
impl Send for OverloadOptions
impl Sync for OverloadOptions
impl Unpin for OverloadOptions
impl UnwindSafe for OverloadOptions
Blanket Implementations§
§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
§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)