pub enum StreamDest {
Unicast {
dst_ip: Ipv4Addr,
dst_port: u16,
},
Multicast {
group: Ipv4Addr,
port: u16,
loopback: bool,
ttl: u32,
},
}Expand description
Destination for GVSP packets received by the stream.
Variants§
Unicast
Standard unicast delivery towards a single host.
Fields
Multicast
Multicast delivery towards one or more hosts joined to the group.
Implementations§
Trait Implementations§
Source§impl Clone for StreamDest
impl Clone for StreamDest
Source§fn clone(&self) -> StreamDest
fn clone(&self) -> StreamDest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StreamDest
impl Debug for StreamDest
Source§impl PartialEq for StreamDest
impl PartialEq for StreamDest
Source§fn eq(&self, other: &StreamDest) -> bool
fn eq(&self, other: &StreamDest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StreamDest
impl Eq for StreamDest
impl StructuralPartialEq for StreamDest
Auto Trait Implementations§
impl Freeze for StreamDest
impl RefUnwindSafe for StreamDest
impl Send for StreamDest
impl Sync for StreamDest
impl Unpin for StreamDest
impl UnsafeUnpin for StreamDest
impl UnwindSafe for StreamDest
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.