pub enum SessionCommand {
Status(Status),
New(New),
End(End),
Subscribe(Subscribe),
Unsubscribe(Unsubscribe),
}Variants§
Implementations§
Source§impl SessionCommand
impl SessionCommand
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SessionCommand
impl Clone for SessionCommand
Source§fn clone(&self) -> SessionCommand
fn clone(&self) -> SessionCommand
Returns a duplicate of the value. Read more
1.0.0 · 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 SessionCommand
impl Debug for SessionCommand
Source§impl<'de> Deserialize<'de> for SessionCommand
impl<'de> Deserialize<'de> for SessionCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<End> for SessionCommand
impl From<End> for SessionCommand
Source§impl From<New> for SessionCommand
impl From<New> for SessionCommand
Source§impl From<SessionCommand> for Command
impl From<SessionCommand> for Command
Source§fn from(v: SessionCommand) -> Self
fn from(v: SessionCommand) -> Self
Converts to this type from the input type.
Source§impl From<Status> for SessionCommand
impl From<Status> for SessionCommand
Source§impl From<Subscribe> for SessionCommand
impl From<Subscribe> for SessionCommand
Source§impl From<Unsubscribe> for SessionCommand
impl From<Unsubscribe> for SessionCommand
Source§fn from(v: Unsubscribe) -> Self
fn from(v: Unsubscribe) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SessionCommand
impl PartialEq for SessionCommand
Source§impl Serialize for SessionCommand
impl Serialize for SessionCommand
Source§impl TryFrom<Command> for SessionCommand
impl TryFrom<Command> for SessionCommand
Source§impl TryFrom<SessionCommand> for End
impl TryFrom<SessionCommand> for End
Source§type Error = SessionCommand
type Error = SessionCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: SessionCommand,
) -> Result<Self, <End as TryFrom<SessionCommand>>::Error>
fn try_from( e: SessionCommand, ) -> Result<Self, <End as TryFrom<SessionCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<SessionCommand> for New
impl TryFrom<SessionCommand> for New
Source§type Error = SessionCommand
type Error = SessionCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: SessionCommand,
) -> Result<Self, <New as TryFrom<SessionCommand>>::Error>
fn try_from( e: SessionCommand, ) -> Result<Self, <New as TryFrom<SessionCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<SessionCommand> for Status
impl TryFrom<SessionCommand> for Status
Source§type Error = SessionCommand
type Error = SessionCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: SessionCommand,
) -> Result<Self, <Status as TryFrom<SessionCommand>>::Error>
fn try_from( e: SessionCommand, ) -> Result<Self, <Status as TryFrom<SessionCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<SessionCommand> for Subscribe
impl TryFrom<SessionCommand> for Subscribe
Source§type Error = SessionCommand
type Error = SessionCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: SessionCommand,
) -> Result<Self, <Subscribe as TryFrom<SessionCommand>>::Error>
fn try_from( e: SessionCommand, ) -> Result<Self, <Subscribe as TryFrom<SessionCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<SessionCommand> for Unsubscribe
impl TryFrom<SessionCommand> for Unsubscribe
Source§type Error = SessionCommand
type Error = SessionCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: SessionCommand,
) -> Result<Self, <Unsubscribe as TryFrom<SessionCommand>>::Error>
fn try_from( e: SessionCommand, ) -> Result<Self, <Unsubscribe as TryFrom<SessionCommand>>::Error>
Performs the conversion.
impl StructuralPartialEq for SessionCommand
Auto Trait Implementations§
impl Freeze for SessionCommand
impl RefUnwindSafe for SessionCommand
impl Send for SessionCommand
impl Sync for SessionCommand
impl Unpin for SessionCommand
impl UnsafeUnpin for SessionCommand
impl UnwindSafe for SessionCommand
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more