Struct tracing_rfc_5424::transport::TcpTransport
source · pub struct TcpTransport { /* private fields */ }
Expand description
Sending syslog message via TCP streams
Note that this implementation, at present, uses non-transparent framing with a trailing character of 10/0x0a/newline.
Implementations§
source§impl TcpTransport
impl TcpTransport
sourcepub fn new<A: ToSocketAddrs>(addr: A) -> Result<TcpTransport>
pub fn new<A: ToSocketAddrs>(addr: A) -> Result<TcpTransport>
Construct a Transport
implementation via TCP at addr
.
sourcepub fn try_default() -> Result<TcpTransport>
pub fn try_default() -> Result<TcpTransport>
Construct a Transport
implementation via TCP at localhost:514
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TcpTransport
impl Send for TcpTransport
impl Sync for TcpTransport
impl Unpin for TcpTransport
impl UnwindSafe for TcpTransport
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