pub struct Ping { /* private fields */ }Implementations
sourceimpl Ping
impl Ping
pub fn new(payload: [u8; 8]) -> Ping
pub fn pong(payload: [u8; 8]) -> Ping
pub fn is_ack(&self) -> bool
pub fn payload(&self) -> &[u8; 8]
pub fn into_payload(self) -> [u8; 8]
sourcepub fn load(head: Head, bytes: &[u8]) -> Result<Ping, FrameError>
pub fn load(head: Head, bytes: &[u8]) -> Result<Ping, FrameError>
Builds a Ping frame from a raw frame.
pub fn encode<B: BufMut>(&self, dst: &mut B)
Trait Implementations
impl Copy 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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