Trait unix_udp_sock::AsPtr

source ·
pub trait AsPtr<T> {
    fn as_ptr(&self) -> *const T;
    fn len(&self) -> usize;

    fn is_empty(&self) -> bool { ... }
}
Expand description

A buffer that can be turned into a raw ptr and has a len. Is used to be generic over Vec, u8, Bytes, BytesMut

Required Methods

Provided Methods

Implementations on Foreign Types

Implementors