pub struct NegotiatedParticipantCapability { /* private fields */ }Expand description
Stored negotiated participant capability.
The private fields ensure this session’s only supported capability is exactly protocol v1.0 with an already-validated complete-frame limit.
Implementations§
Source§impl NegotiatedParticipantCapability
impl NegotiatedParticipantCapability
Sourcepub const fn v1(max_frame_bytes: ValidatedFrameLimit) -> Self
pub const fn v1(max_frame_bytes: ValidatedFrameLimit) -> Self
Constructs the currently supported participant-v1 capability.
Sourcepub const fn protocol_version(self) -> ProtocolVersion
pub const fn protocol_version(self) -> ProtocolVersion
Returns the negotiated participant protocol version.
Sourcepub const fn max_frame_bytes(self) -> ValidatedFrameLimit
pub const fn max_frame_bytes(self) -> ValidatedFrameLimit
Returns the negotiated complete-frame allocation limit.
Trait Implementations§
Source§impl Clone for NegotiatedParticipantCapability
impl Clone for NegotiatedParticipantCapability
Source§fn clone(&self) -> NegotiatedParticipantCapability
fn clone(&self) -> NegotiatedParticipantCapability
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 NegotiatedParticipantCapability
impl Eq for NegotiatedParticipantCapability
impl StructuralPartialEq for NegotiatedParticipantCapability
Auto Trait Implementations§
impl Freeze for NegotiatedParticipantCapability
impl RefUnwindSafe for NegotiatedParticipantCapability
impl Send for NegotiatedParticipantCapability
impl Sync for NegotiatedParticipantCapability
impl Unpin for NegotiatedParticipantCapability
impl UnsafeUnpin for NegotiatedParticipantCapability
impl UnwindSafe for NegotiatedParticipantCapability
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