Struct wisp_mux::ConnectPacket
source · pub struct ConnectPacket {
pub stream_type: StreamType,
pub destination_port: u16,
pub destination_hostname: String,
}
Expand description
Packet used to create a new stream.
See the docs.
Fields§
§stream_type: StreamType
Whether the new stream should use a TCP or UDP socket.
destination_port: u16
Destination TCP/UDP port for the new stream.
destination_hostname: String
Destination hostname, in a UTF-8 string.
Implementations§
source§impl ConnectPacket
impl ConnectPacket
sourcepub fn new(
stream_type: StreamType,
destination_port: u16,
destination_hostname: String,
) -> Self
pub fn new( stream_type: StreamType, destination_port: u16, destination_hostname: String, ) -> Self
Create a new connect packet.
Trait Implementations§
source§impl Clone for ConnectPacket
impl Clone for ConnectPacket
source§fn clone(&self) -> ConnectPacket
fn clone(&self) -> ConnectPacket
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConnectPacket
impl Debug for ConnectPacket
Auto Trait Implementations§
impl Freeze for ConnectPacket
impl RefUnwindSafe for ConnectPacket
impl Send for ConnectPacket
impl Sync for ConnectPacket
impl Unpin for ConnectPacket
impl UnwindSafe for ConnectPacket
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)