pub struct AdvertisedReceiver { /* private fields */ }Expand description
An owned description of one advertised receiver, independent of later listener calls.
Every string is whatever the receiver advertised. Text that is not valid UTF-8 is decoded with U+FFFD in place of the offending bytes; only the identifiers keep their exact bytes.
Implementations§
Source§impl AdvertisedReceiver
impl AdvertisedReceiver
Sourcepub fn id(&self) -> Option<&ReceiverId>
pub fn id(&self) -> Option<&ReceiverId>
The server’s identifier for this receiver.
Sourcepub fn input_id(&self) -> Option<&InputGroupId>
pub fn input_id(&self) -> Option<&InputGroupId>
The identifier of the input group the receiver belongs to.
Sourcepub fn input_name(&self) -> Option<&str>
pub fn input_name(&self) -> Option<&str>
The name of the input group the receiver belongs to, which is empty for a receiver advertised without one.
Sourcepub fn streams(&self) -> &[ReceiverStream]
pub fn streams(&self) -> &[ReceiverStream]
The stream kinds the receiver accepts.
Sourcepub fn commands(&self) -> &[ReceiverCommand]
pub fn commands(&self) -> &[ReceiverCommand]
The remote commands the receiver accepts.
Sourcepub fn events_subscribed(&self) -> bool
pub fn events_subscribed(&self) -> bool
Whether this listener is subscribed to the receiver’s events.
Trait Implementations§
Source§impl Clone for AdvertisedReceiver
impl Clone for AdvertisedReceiver
Source§impl Debug for AdvertisedReceiver
impl Debug for AdvertisedReceiver
impl Eq for AdvertisedReceiver
Source§impl Hash for AdvertisedReceiver
impl Hash for AdvertisedReceiver
Source§impl PartialEq for AdvertisedReceiver
impl PartialEq for AdvertisedReceiver
impl StructuralPartialEq for AdvertisedReceiver
Auto Trait Implementations§
impl Freeze for AdvertisedReceiver
impl RefUnwindSafe for AdvertisedReceiver
impl Send for AdvertisedReceiver
impl Sync for AdvertisedReceiver
impl Unpin for AdvertisedReceiver
impl UnsafeUnpin for AdvertisedReceiver
impl UnwindSafe for AdvertisedReceiver
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