Struct embedded_websocket::WebSocketReadResult [−][src]
The metadata result of a read
function call of a websocket
Fields
len_from: usize
Number of bytes read from the from
buffer
len_to: usize
Number of bytes written to the to
buffer
end_of_message: bool
End of message flag is true
if the to
buffer contains an entire websocket frame
payload otherwise false
if the user must continue calling the read function to get the
rest of the payload
close_status: Option<WebSocketCloseStatusCode>
Close status code (as per the websocket spec) if the message type is CloseMustReply
or
CloseCompleted
. If a close status is specified then a UTF8 encoded string could also
appear in the frame payload giving more detailed information about why the websocket was
closed.
message_type: WebSocketReceiveMessageType
The websocket frame type
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WebSocketReadResult
[src]
impl Send for WebSocketReadResult
[src]
impl Sync for WebSocketReadResult
[src]
impl Unpin for WebSocketReadResult
[src]
impl UnwindSafe for WebSocketReadResult
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,