#[repr(u8)]pub enum BussSettings {
BodyLength = 0,
Host = 1,
Custom = 255,
}Expand description
Settings are values passed during both request and response that are supposed to alter the default behavior of the client/server. They can also carry extra information for the protocol. The settings type/flag are of type u8 (1 byte). This means there are 256 possible settings. Values from 0 to 254(0xfe) are reserved for standard settings values. For your custom settings, value 0xff(255) indicates custom settings.
Variants§
BodyLength = 0
The number of bytes contained in body content
Host = 1
The host domain name that this request was requested for
Custom = 255
The custom tag
Trait Implementations§
Source§impl Clone for BussSettings
impl Clone for BussSettings
Source§fn clone(&self) -> BussSettings
fn clone(&self) -> BussSettings
Returns a duplicate 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 moreimpl Copy for BussSettings
Auto Trait Implementations§
impl Freeze for BussSettings
impl RefUnwindSafe for BussSettings
impl Send for BussSettings
impl Sync for BussSettings
impl Unpin for BussSettings
impl UnwindSafe for BussSettings
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