pub enum AdvertisedTransport {
Enabled(TransportId),
Disabled(TransportId),
}Variants§
Enabled(TransportId)
Disabled(TransportId)
Implementations§
Source§impl AdvertisedTransport
impl AdvertisedTransport
pub const fn from_wire( enabled: bool, transport_id: TransportId, ) -> AdvertisedTransport
pub const fn is_enabled(&self) -> bool
pub const fn transport_id(&self) -> &TransportId
Trait Implementations§
Source§impl Debug for AdvertisedTransport
impl Debug for AdvertisedTransport
impl Eq for AdvertisedTransport
Source§impl PartialEq for AdvertisedTransport
impl PartialEq for AdvertisedTransport
impl StructuralPartialEq for AdvertisedTransport
Auto Trait Implementations§
impl Freeze for AdvertisedTransport
impl RefUnwindSafe for AdvertisedTransport
impl Send for AdvertisedTransport
impl Sync for AdvertisedTransport
impl Unpin for AdvertisedTransport
impl UnsafeUnpin for AdvertisedTransport
impl UnwindSafe for AdvertisedTransport
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