pub struct TunnelConnection { /* private fields */ }
Implementations§
Source§impl TunnelConnection
impl TunnelConnection
Sourcepub fn new(
ipv4: [u8; 4],
port: u16,
config: TunnelConnectionConfig,
) -> TunnelConnection
pub fn new( ipv4: [u8; 4], port: u16, config: TunnelConnectionConfig, ) -> TunnelConnection
Create an TunnelConnReq
pub fn send<T: DPT + Default>(&mut self, ev: GroupEvent<T>)
pub fn get_outbound_data(&mut self) -> Option<&[u8]>
pub fn get_next_time_event(&self) -> Instant
pub fn connected(&self) -> bool
pub fn handle_time_events(&mut self)
pub fn handle_inbound_message( &mut self, data: &[u8], ) -> Option<GroupEvent<Vec<u8>>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TunnelConnection
impl RefUnwindSafe for TunnelConnection
impl Send for TunnelConnection
impl Sync for TunnelConnection
impl Unpin for TunnelConnection
impl UnwindSafe for TunnelConnection
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