[−][src]Struct tox_packet::messenger::Msi
Msi is a struct that holds info for Media Session Interface.
Sub-packet: kind [1 byte], size [1 byte], value [$size bytes] : but actually size is always 1, so a sub-packet is always 3 bytes long
- kind: one of Request, Capabilities, Error
- size: the length in byte of value(always 1)
- value: enum value depending on kind
Payload: |sub_packet| |...{sub-packet}| |0|
Serialized form:
Length | Content |
---|---|
1 | 0x45 |
0..255 | payload |
Sub-packet serialized form:
Length | Content |
---|---|
1 | kind(1 = Request, 2 = Error, 3 = Capabilities) |
1 | size(always 1) |
1 | value(it depends on kind) |
Implementations
impl Msi
[src]
pub fn new(
request: RequestKind,
error: Option<MsiErrorKind>,
capabilities: CapabilitiesKind
) -> Self
[src]
request: RequestKind,
error: Option<MsiErrorKind>,
capabilities: CapabilitiesKind
) -> Self
Make new msi struct
Trait Implementations
impl Clone for Msi
[src]
impl Debug for Msi
[src]
impl Eq for Msi
[src]
impl FromBytes for Msi
[src]
impl PartialEq<Msi> for Msi
[src]
impl StructuralEq for Msi
[src]
impl StructuralPartialEq for Msi
[src]
impl ToBytes for Msi
[src]
Auto Trait Implementations
impl RefUnwindSafe for Msi
[src]
impl Send for Msi
[src]
impl Sync for Msi
[src]
impl Unpin for Msi
[src]
impl UnwindSafe for Msi
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,