pub enum Message {
Show 14 variants
SubscribeUpdate(SubscribeUpdate),
Subscribe(Subscribe),
Unsubscribe(Unsubscribe),
SubscribeOk(SubscribeOk),
SubscribeError(SubscribeError),
SubscribeDone(SubscribeDone),
Announce(Announce),
Unannounce(Unannounce),
AnnounceOk(AnnounceOk),
AnnounceError(AnnounceError),
AnnounceCancel(AnnounceCancel),
TrackStatusRequest(TrackStatusRequest),
TrackStatus(TrackStatus),
GoAway(GoAway),
}
Expand description
All supported message types.
Variants§
SubscribeUpdate(SubscribeUpdate)
Subscribe(Subscribe)
Unsubscribe(Unsubscribe)
SubscribeOk(SubscribeOk)
SubscribeError(SubscribeError)
SubscribeDone(SubscribeDone)
Announce(Announce)
Unannounce(Unannounce)
AnnounceOk(AnnounceOk)
AnnounceError(AnnounceError)
AnnounceCancel(AnnounceCancel)
TrackStatusRequest(TrackStatusRequest)
TrackStatus(TrackStatus)
GoAway(GoAway)
Implementations§
Trait Implementations§
Source§impl From<AnnounceCancel> for Message
impl From<AnnounceCancel> for Message
Source§fn from(m: AnnounceCancel) -> Self
fn from(m: AnnounceCancel) -> Self
Converts to this type from the input type.
Source§impl From<AnnounceError> for Message
impl From<AnnounceError> for Message
Source§fn from(m: AnnounceError) -> Self
fn from(m: AnnounceError) -> Self
Converts to this type from the input type.
Source§impl From<AnnounceOk> for Message
impl From<AnnounceOk> for Message
Source§fn from(m: AnnounceOk) -> Self
fn from(m: AnnounceOk) -> Self
Converts to this type from the input type.
Source§impl From<SubscribeDone> for Message
impl From<SubscribeDone> for Message
Source§fn from(m: SubscribeDone) -> Self
fn from(m: SubscribeDone) -> Self
Converts to this type from the input type.
Source§impl From<SubscribeError> for Message
impl From<SubscribeError> for Message
Source§fn from(m: SubscribeError) -> Self
fn from(m: SubscribeError) -> Self
Converts to this type from the input type.
Source§impl From<SubscribeOk> for Message
impl From<SubscribeOk> for Message
Source§fn from(m: SubscribeOk) -> Self
fn from(m: SubscribeOk) -> Self
Converts to this type from the input type.
Source§impl From<SubscribeUpdate> for Message
impl From<SubscribeUpdate> for Message
Source§fn from(m: SubscribeUpdate) -> Self
fn from(m: SubscribeUpdate) -> Self
Converts to this type from the input type.
Source§impl From<Subscriber> for Message
impl From<Subscriber> for Message
Source§fn from(p: Subscriber) -> Self
fn from(p: Subscriber) -> Self
Converts to this type from the input type.
Source§impl From<TrackStatus> for Message
impl From<TrackStatus> for Message
Source§fn from(m: TrackStatus) -> Self
fn from(m: TrackStatus) -> Self
Converts to this type from the input type.
Source§impl From<TrackStatusRequest> for Message
impl From<TrackStatusRequest> for Message
Source§fn from(m: TrackStatusRequest) -> Self
fn from(m: TrackStatusRequest) -> Self
Converts to this type from the input type.
Source§impl From<Unannounce> for Message
impl From<Unannounce> for Message
Source§fn from(m: Unannounce) -> Self
fn from(m: Unannounce) -> Self
Converts to this type from the input type.
Source§impl From<Unsubscribe> for Message
impl From<Unsubscribe> for Message
Source§fn from(m: Unsubscribe) -> Self
fn from(m: Unsubscribe) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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