pub struct GuestConfig { /* private fields */ }Expand description
Validated protocol configuration and bounded guest tracking limit.
Implementations§
Source§impl GuestConfig
impl GuestConfig
Sourcepub fn new(
wire: WireConfig,
offered_features: u64,
max_inflight: u16,
) -> Result<Self, GuestConfigError>
pub fn new( wire: WireConfig, offered_features: u64, max_inflight: u16, ) -> Result<Self, GuestConfigError>
Validate the device-specific configuration and offered feature bits.
Protocol 1.0 accepts no device-specific transport feature bits, including unknown bits.
Sourcepub const fn wire(self) -> WireConfig
pub const fn wire(self) -> WireConfig
Validated wire configuration.
Sourcepub const fn max_inflight(self) -> u16
pub const fn max_inflight(self) -> u16
Maximum requests retained by this client.
Trait Implementations§
Source§impl Clone for GuestConfig
impl Clone for GuestConfig
Source§fn clone(&self) -> GuestConfig
fn clone(&self) -> GuestConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GuestConfig
Source§impl Debug for GuestConfig
impl Debug for GuestConfig
impl Eq for GuestConfig
Source§impl PartialEq for GuestConfig
impl PartialEq for GuestConfig
Source§fn eq(&self, other: &GuestConfig) -> bool
fn eq(&self, other: &GuestConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GuestConfig
Auto Trait Implementations§
impl Freeze for GuestConfig
impl RefUnwindSafe for GuestConfig
impl Send for GuestConfig
impl Sync for GuestConfig
impl Unpin for GuestConfig
impl UnsafeUnpin for GuestConfig
impl UnwindSafe for GuestConfig
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