pub struct ServerMessage {
pub ty: ServerMessageType,
pub duration: u32,
pub text: BString,
}Expand description
Server banned message
Fields§
§ty: ServerMessageType§duration: u32§text: BStringTrait Implementations§
Source§impl Clone for ServerMessage
impl Clone for ServerMessage
Source§fn clone(&self) -> ServerMessage
fn clone(&self) -> ServerMessage
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 ServerMessage
impl Debug for ServerMessage
Source§impl<'de> DeserializeV5<'de> for ServerMessage
impl<'de> DeserializeV5<'de> for ServerMessage
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<ServerMessage> for ServerPacket
impl From<ServerMessage> for ServerPacket
Source§fn from(v: ServerMessage) -> Self
fn from(v: ServerMessage) -> Self
Converts to this type from the input type.
Source§impl SerializeV5 for ServerMessage
impl SerializeV5 for ServerMessage
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
Auto Trait Implementations§
impl Freeze for ServerMessage
impl RefUnwindSafe for ServerMessage
impl Send for ServerMessage
impl Sync for ServerMessage
impl Unpin for ServerMessage
impl UnwindSafe for ServerMessage
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