Struct RawControlPacket

Source
pub struct RawControlPacket {
    pub id: u16,
    pub bytes: Bytes,
}
Expand description

Raw/not-yet-parsed Mumble control packet.

Fields§

§id: u16

Packet ID

See msgs::id.

§bytes: Bytes

Raw message bytes.

Trait Implementations§

Source§

impl Clone for RawControlPacket

Source§

fn clone(&self) -> RawControlPacket

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RawControlPacket

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Encoder<RawControlPacket> for RawControlCodec

Source§

type Error = Error

The type of encoding errors. Read more
Source§

fn encode( &mut self, item: RawControlPacket, dst: &mut BytesMut, ) -> Result<(), Error>

Encodes a frame into the buffer provided. Read more
Source§

impl From<ACL> for RawControlPacket

Source§

fn from(msg: ACL) -> Self

Converts to this type from the input type.
Source§

impl From<Authenticate> for RawControlPacket

Source§

fn from(msg: Authenticate) -> Self

Converts to this type from the input type.
Source§

impl From<BanList> for RawControlPacket

Source§

fn from(msg: BanList) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelRemove> for RawControlPacket

Source§

fn from(msg: ChannelRemove) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelState> for RawControlPacket

Source§

fn from(msg: ChannelState) -> Self

Converts to this type from the input type.
Source§

impl From<CodecVersion> for RawControlPacket

Source§

fn from(msg: CodecVersion) -> Self

Converts to this type from the input type.
Source§

impl From<ContextAction> for RawControlPacket

Source§

fn from(msg: ContextAction) -> Self

Converts to this type from the input type.
Source§

impl From<ContextActionModify> for RawControlPacket

Source§

fn from(msg: ContextActionModify) -> Self

Converts to this type from the input type.
Source§

impl<Dst: VoicePacketDst> From<ControlPacket<Dst>> for RawControlPacket

Source§

fn from(packet: ControlPacket<Dst>) -> Self

Converts to this type from the input type.
Source§

impl From<CryptSetup> for RawControlPacket

Source§

fn from(msg: CryptSetup) -> Self

Converts to this type from the input type.
Source§

impl From<PermissionDenied> for RawControlPacket

Source§

fn from(msg: PermissionDenied) -> Self

Converts to this type from the input type.
Source§

impl From<PermissionQuery> for RawControlPacket

Source§

fn from(msg: PermissionQuery) -> Self

Converts to this type from the input type.
Source§

impl From<Ping> for RawControlPacket

Source§

fn from(msg: Ping) -> Self

Converts to this type from the input type.
Source§

impl From<QueryUsers> for RawControlPacket

Source§

fn from(msg: QueryUsers) -> Self

Converts to this type from the input type.
Source§

impl From<Reject> for RawControlPacket

Source§

fn from(msg: Reject) -> Self

Converts to this type from the input type.
Source§

impl From<RequestBlob> for RawControlPacket

Source§

fn from(msg: RequestBlob) -> Self

Converts to this type from the input type.
Source§

impl From<ServerConfig> for RawControlPacket

Source§

fn from(msg: ServerConfig) -> Self

Converts to this type from the input type.
Source§

impl From<ServerSync> for RawControlPacket

Source§

fn from(msg: ServerSync) -> Self

Converts to this type from the input type.
Source§

impl From<SuggestConfig> for RawControlPacket

Source§

fn from(msg: SuggestConfig) -> Self

Converts to this type from the input type.
Source§

impl From<TextMessage> for RawControlPacket

Source§

fn from(msg: TextMessage) -> Self

Converts to this type from the input type.
Source§

impl From<UserList> for RawControlPacket

Source§

fn from(msg: UserList) -> Self

Converts to this type from the input type.
Source§

impl From<UserRemove> for RawControlPacket

Source§

fn from(msg: UserRemove) -> Self

Converts to this type from the input type.
Source§

impl From<UserState> for RawControlPacket

Source§

fn from(msg: UserState) -> Self

Converts to this type from the input type.
Source§

impl From<UserStats> for RawControlPacket

Source§

fn from(msg: UserStats) -> Self

Converts to this type from the input type.
Source§

impl From<Version> for RawControlPacket

Source§

fn from(msg: Version) -> Self

Converts to this type from the input type.
Source§

impl<Dst: VoicePacketDst> From<VoicePacket<Dst>> for RawControlPacket

Source§

fn from(msg: VoicePacket<Dst>) -> Self

Converts to this type from the input type.
Source§

impl From<VoiceTarget> for RawControlPacket

Source§

fn from(msg: VoiceTarget) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for RawControlPacket

Source§

fn eq(&self, other: &RawControlPacket) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<RawControlPacket> for ACL

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for Authenticate

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for BanList

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for ChannelRemove

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for ChannelState

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for CodecVersion

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for ContextAction

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for ContextActionModify

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<Dst: VoicePacketDst> TryFrom<RawControlPacket> for ControlPacket<Dst>

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for CryptSetup

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for PermissionDenied

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for PermissionQuery

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for Ping

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for QueryUsers

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for Reject

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for RequestBlob

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for ServerConfig

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for ServerSync

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for SuggestConfig

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for TextMessage

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for UserList

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for UserRemove

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for UserState

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for UserStats

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for Version

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<Dst: VoicePacketDst> TryFrom<RawControlPacket> for VoicePacket<Dst>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RawControlPacket> for VoiceTarget

Source§

type Error = ProtobufError

The type returned in the event of a conversion error.
Source§

fn try_from(packet: RawControlPacket) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl StructuralPartialEq for RawControlPacket

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.