pub enum HostToClientCommands {
ChallengeType(InChallengeCommand),
ConnectType(ConnectResponse),
PacketType(HostToClientPacketHeader),
}Variants§
ChallengeType(InChallengeCommand)
ConnectType(ConnectResponse)
PacketType(HostToClientPacketHeader)
Implementations§
Source§impl HostToClientCommands
impl HostToClientCommands
pub fn to_octet(&self) -> HostToClientCommand
pub fn to_stream(&self, stream: &mut impl WriteOctetStream) -> Result<()>
pub fn from_stream(stream: &mut impl ReadOctetStream) -> Result<Self>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HostToClientCommands
impl RefUnwindSafe for HostToClientCommands
impl Send for HostToClientCommands
impl Sync for HostToClientCommands
impl Unpin for HostToClientCommands
impl UnwindSafe for HostToClientCommands
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