pub struct OnStatus<'a> {
pub code: OnStatusCode,
pub description: Option<StringCow<'a>>,
pub level: CommandResultLevel,
pub others: Option<Amf0Object<'a>>,
}
Expand description
The onStatus
command is used to send status information from the server to the client.
Fields§
§code: OnStatusCode
The status code.
Refer to the OnStatusCode
enum for a list of common status codes.
description: Option<StringCow<'a>>
The description of the status update.
level: CommandResultLevel
The level of the status update.
others: Option<Amf0Object<'a>>
Any other additional information that should be sent as part of the object.
Implementations§
Trait Implementations§
impl<'a> StructuralPartialEq for OnStatus<'a>
Auto Trait Implementations§
impl<'a> !Freeze for OnStatus<'a>
impl<'a> RefUnwindSafe for OnStatus<'a>
impl<'a> Send for OnStatus<'a>
impl<'a> Sync for OnStatus<'a>
impl<'a> Unpin for OnStatus<'a>
impl<'a> UnwindSafe for OnStatus<'a>
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