Struct bantamweight::HandshakePacket
source · [−]Fields
listening_port: u16
request_peers: bool
Implementations
sourceimpl HandshakePacket
impl HandshakePacket
pub fn new(listening_port: u16, request_peers: bool) -> HandshakePacket
Trait Implementations
sourceimpl PacketHeader<BantamPacketType> for HandshakePacket
impl PacketHeader<BantamPacketType> for HandshakePacket
fn get_type(&self) -> BantamPacketType
sourceimpl Serializable for HandshakePacket
impl Serializable for HandshakePacket
fn to_stream(&self, stream: &mut BinaryStream)
fn from_stream(stream: &mut BinaryStream) -> Self
Auto Trait Implementations
impl RefUnwindSafe for HandshakePacket
impl Send for HandshakePacket
impl Sync for HandshakePacket
impl Unpin for HandshakePacket
impl UnwindSafe for HandshakePacket
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