pub struct ForwardEntry {
pub serial: String,
pub local: String,
pub remote: String,
}Expand description
A port forward entry.
Fields§
§serial: String§local: String§remote: StringImplementations§
Source§impl ForwardEntry
impl ForwardEntry
Sourcepub fn local_port(&self) -> Option<u16>
pub fn local_port(&self) -> Option<u16>
Extract port number from a “tcp:XXXXX” string.
pub fn remote_port(&self) -> Option<u16>
Trait Implementations§
Source§impl Clone for ForwardEntry
impl Clone for ForwardEntry
Source§fn clone(&self) -> ForwardEntry
fn clone(&self) -> ForwardEntry
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ForwardEntry
impl RefUnwindSafe for ForwardEntry
impl Send for ForwardEntry
impl Sync for ForwardEntry
impl Unpin for ForwardEntry
impl UnsafeUnpin for ForwardEntry
impl UnwindSafe for ForwardEntry
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