Struct PacketServiceState
#[non_exhaustive]pub struct PacketServiceState {
pub connection_status: ConnectionStatus,
}Expand description
State of the packet data connection.
Returned by GetPacketServiceStatus.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.connection_status: ConnectionStatusConnection state.
Trait Implementations§
§impl Clone for PacketServiceState
impl Clone for PacketServiceState
§fn clone(&self) -> PacketServiceState
fn clone(&self) -> PacketServiceState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PacketServiceState
§impl Debug for PacketServiceState
impl Debug for PacketServiceState
impl Eq for PacketServiceState
§impl PartialEq for PacketServiceState
impl PartialEq for PacketServiceState
impl StructuralPartialEq for PacketServiceState
§impl TryFrom<&Message> for PacketServiceState
impl TryFrom<&Message> for PacketServiceState
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
§fn try_from(message: &Message) -> Result<Self, DecodeError>
fn try_from(message: &Message) -> Result<Self, DecodeError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PacketServiceState
impl RefUnwindSafe for PacketServiceState
impl Send for PacketServiceState
impl Sync for PacketServiceState
impl Unpin for PacketServiceState
impl UnsafeUnpin for PacketServiceState
impl UnwindSafe for PacketServiceState
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