#[non_exhaustive]pub struct EndpointSettings {
pub jumbo_frames_enabled: bool,
/* private fields */
}Expand description
Settings for the endpoint.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.jumbo_frames_enabled: boolOptional. Immutable. Indicates whether Jumbo Frames are enabled. Default value is false.
Implementations§
Source§impl EndpointSettings
impl EndpointSettings
pub fn new() -> Self
Sourcepub fn set_jumbo_frames_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_jumbo_frames_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of jumbo_frames_enabled.
§Example
ⓘ
let x = EndpointSettings::new().set_jumbo_frames_enabled(true);Trait Implementations§
Source§impl Clone for EndpointSettings
impl Clone for EndpointSettings
Source§fn clone(&self) -> EndpointSettings
fn clone(&self) -> EndpointSettings
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 moreSource§impl Debug for EndpointSettings
impl Debug for EndpointSettings
Source§impl Default for EndpointSettings
impl Default for EndpointSettings
Source§fn default() -> EndpointSettings
fn default() -> EndpointSettings
Returns the “default value” for a type. Read more
Source§impl Message for EndpointSettings
impl Message for EndpointSettings
Source§impl PartialEq for EndpointSettings
impl PartialEq for EndpointSettings
impl StructuralPartialEq for EndpointSettings
Auto Trait Implementations§
impl Freeze for EndpointSettings
impl RefUnwindSafe for EndpointSettings
impl Send for EndpointSettings
impl Sync for EndpointSettings
impl Unpin for EndpointSettings
impl UnsafeUnpin for EndpointSettings
impl UnwindSafe for EndpointSettings
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