pub enum Target {
Flood,
Single(u16),
}
Expand description
Describes an endpoint’s send target
This is different from a Recipient in that it doesn’t encode information about a user on the global network. It’s values are used by one-to-many Endpoint implementors to desambiguate their own routing tables without having to replicate the Ratman internal routing table.
If your endpoint doesn’t implement a one-to-many link (i.e. if
it’s always one-to-one), just let this value to Single(0)
(Target::default()
)
Variants§
Trait Implementations§
impl Copy for Target
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
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