pub struct WebSocketReviewMessageRef<'a> { /* private fields */ }Expand description
Safe borrowed metadata for one ordered message declaration.
Raw identifiers, text, and expected digests are intentionally available only to the crate-owned transport boundary.
Implementations§
Source§impl<'a> WebSocketReviewMessageRef<'a>
impl<'a> WebSocketReviewMessageRef<'a>
Sourcepub fn message_reference(self) -> &'a str
pub fn message_reference(self) -> &'a str
Stable value-free reference for the operator-declared message revision.
Sourcepub fn expected_response_reference(self) -> &'a str
pub fn expected_response_reference(self) -> &'a str
Stable value-free reference for that revision’s expected response.
Sourcepub fn outbound_length(self) -> u64
pub fn outbound_length(self) -> u64
UTF-8 byte length of the declared outbound text.
Sourcepub const fn expected_response_length(self) -> u64
pub const fn expected_response_length(self) -> u64
Exact expected inbound application-payload length.
Trait Implementations§
Source§impl<'a> Clone for WebSocketReviewMessageRef<'a>
impl<'a> Clone for WebSocketReviewMessageRef<'a>
Source§fn clone(&self) -> WebSocketReviewMessageRef<'a>
fn clone(&self) -> WebSocketReviewMessageRef<'a>
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<'a> Copy for WebSocketReviewMessageRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for WebSocketReviewMessageRef<'a>
impl<'a> RefUnwindSafe for WebSocketReviewMessageRef<'a>
impl<'a> Send for WebSocketReviewMessageRef<'a>
impl<'a> Sync for WebSocketReviewMessageRef<'a>
impl<'a> Unpin for WebSocketReviewMessageRef<'a>
impl<'a> UnsafeUnpin for WebSocketReviewMessageRef<'a>
impl<'a> UnwindSafe for WebSocketReviewMessageRef<'a>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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