Struct web_socket::server::Data
source · [−]pub struct Data<'a> {
pub ty: DataType,
/* private fields */
}Fields
ty: DataTypeImplementations
sourceimpl Data<'_>
impl Data<'_>
pub async fn read(&mut self, buf: &mut [u8]) -> Result<usize>
pub async fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>
pub async fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize>
pub async fn read_to_end_with_limit(
&mut self,
buf: &mut Vec<u8>,
limit: usize
) -> Result<usize>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Data<'a>
impl<'a> Send for Data<'a>
impl<'a> Sync for Data<'a>
impl<'a> Unpin for Data<'a>
impl<'a> !UnwindSafe for Data<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more