pub struct Ping { /* private fields */ }Implementations§
source§impl Ping
impl Ping
pub fn new(payload: [u8; 8]) -> Ping
pub fn pong(payload: [u8; 8]) -> Ping
pub fn ret_pong(&self) -> Ping
pub fn is_ack(&self) -> bool
pub fn payload(&self) -> &[u8; 8]
pub fn into_payload(self) -> [u8; 8]
sourcepub fn parse<B: Buf>(head: FrameHeader, bytes: &mut B) -> WebResult<Ping>
pub fn parse<B: Buf>(head: FrameHeader, bytes: &mut B) -> WebResult<Ping>
Builds a Ping frame from a raw frame.
pub fn encode<B: Buf + MarkBuf + BufMut>(&self, dst: &mut B) -> WebResult<usize>
Trait Implementations§
source§impl PartialEq<Ping> for Ping
impl PartialEq<Ping> for Ping
impl Eq for Ping
impl StructuralEq for Ping
impl StructuralPartialEq for Ping
Auto Trait Implementations§
impl RefUnwindSafe for Ping
impl Send for Ping
impl Sync for Ping
impl Unpin for Ping
impl UnwindSafe for Ping
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