pub struct KeepAlive {
pub id: u64,
}
Fields§
§id: u64
Trait Implementations§
Source§impl IdentifiedPacket<PacketId> for KeepAlive
impl IdentifiedPacket<PacketId> for KeepAlive
Source§impl<'a> SliceSerializable<'a> for KeepAlive
impl<'a> SliceSerializable<'a> for KeepAlive
type CopyType = &'a KeepAlive
fn read(bytes: &mut &'a [u8]) -> Result<KeepAlive>
fn get_write_size(object: &'a KeepAlive) -> usize
Source§unsafe fn write<'bytes>(
bytes: &'bytes mut [u8],
object: &'a KeepAlive,
) -> &'bytes mut [u8] ⓘ
unsafe fn write<'bytes>( bytes: &'bytes mut [u8], object: &'a KeepAlive, ) -> &'bytes mut [u8] ⓘ
Safety Read more
fn as_copy_type(t: &'a KeepAlive) -> Self::CopyType
fn read_fully(bytes: &mut &'a [u8]) -> Result<T, Error>
Auto Trait Implementations§
impl Freeze for KeepAlive
impl RefUnwindSafe for KeepAlive
impl Send for KeepAlive
impl Sync for KeepAlive
impl Unpin for KeepAlive
impl UnwindSafe for KeepAlive
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