Struct embedded_websocket::framer::Framer [−][src]
Implementations
impl<'a, TRng, TStream> Framer<'a, TRng, Client, TStream> where
TRng: RngCore,
TStream: Read + Write,
[src]
TRng: RngCore,
TStream: Read + Write,
pub fn connect(
&mut self,
websocket_options: &WebSocketOptions<'_>
) -> Result<(), FramerError>
[src]
&mut self,
websocket_options: &WebSocketOptions<'_>
) -> Result<(), FramerError>
impl<'a, TRng, TWebSocketType, TStream> Framer<'a, TRng, TWebSocketType, TStream> where
TRng: RngCore,
TWebSocketType: WebSocketType,
TStream: Read + Write,
[src]
TRng: RngCore,
TWebSocketType: WebSocketType,
TStream: Read + Write,
pub fn new(
read_buf: &'a mut [u8],
write_buf: &'a mut [u8],
websocket: &'a mut WebSocket<TRng, TWebSocketType>,
stream: &'a mut TStream
) -> Self
[src]
read_buf: &'a mut [u8],
write_buf: &'a mut [u8],
websocket: &'a mut WebSocket<TRng, TWebSocketType>,
stream: &'a mut TStream
) -> Self
pub fn close(
&mut self,
close_status: WebSocketCloseStatusCode,
status_description: Option<&str>
) -> Result<(), FramerError>
[src]
&mut self,
close_status: WebSocketCloseStatusCode,
status_description: Option<&str>
) -> Result<(), FramerError>
pub fn write(
&mut self,
message_type: WebSocketSendMessageType,
end_of_message: bool,
frame_buf: &[u8]
) -> Result<(), FramerError>
[src]
&mut self,
message_type: WebSocketSendMessageType,
end_of_message: bool,
frame_buf: &[u8]
) -> Result<(), FramerError>
pub fn read_text<'b>(
&mut self,
frame_buf: &'b mut [u8]
) -> Result<Option<&'b str>, FramerError>
[src]
&mut self,
frame_buf: &'b mut [u8]
) -> Result<Option<&'b str>, FramerError>
pub fn read_binary<'b>(
&mut self,
frame_buf: &'b mut [u8]
) -> Result<Option<&'b [u8]>, FramerError>
[src]
&mut self,
frame_buf: &'b mut [u8]
) -> Result<Option<&'b [u8]>, FramerError>
Auto Trait Implementations
impl<'a, TRng, TWebSocketType, TStream> RefUnwindSafe for Framer<'a, TRng, TWebSocketType, TStream> where
TRng: RefUnwindSafe,
TStream: RefUnwindSafe,
TWebSocketType: RefUnwindSafe,
[src]
TRng: RefUnwindSafe,
TStream: RefUnwindSafe,
TWebSocketType: RefUnwindSafe,
impl<'a, TRng, TWebSocketType, TStream> Send for Framer<'a, TRng, TWebSocketType, TStream> where
TRng: Send,
TStream: Send,
TWebSocketType: Send,
[src]
TRng: Send,
TStream: Send,
TWebSocketType: Send,
impl<'a, TRng, TWebSocketType, TStream> Sync for Framer<'a, TRng, TWebSocketType, TStream> where
TRng: Sync,
TStream: Sync,
TWebSocketType: Sync,
[src]
TRng: Sync,
TStream: Sync,
TWebSocketType: Sync,
impl<'a, TRng, TWebSocketType, TStream> Unpin for Framer<'a, TRng, TWebSocketType, TStream>
[src]
impl<'a, TRng, TWebSocketType, TStream> !UnwindSafe for Framer<'a, TRng, TWebSocketType, TStream>
[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>,