pub struct Peer {
pub peer_status: String,
pub cause: Option<String>,
pub address: Option<String>,
pub port: Option<String>,
pub time: Option<String>,
}Expand description
Detailed information about a remote peer that communicates with Asterisk.
Fields§
§peer_status: StringThe current state of the peer. Note that the values of the status are dependent on the underlying peer technology.
cause: Option<String>An optional reason associated with the change in peer_status.
address: Option<String>The IP address of the peer.
port: Option<String>The port of the peer.
time: Option<String>The last known time the peer was contacted.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Peer
impl<'de> Deserialize<'de> for Peer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Peer
Auto Trait Implementations§
impl Freeze for Peer
impl RefUnwindSafe for Peer
impl Send for Peer
impl Sync for Peer
impl Unpin for Peer
impl UnwindSafe for Peer
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