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
impl 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
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