pub struct NnrpClient { /* private fields */ }Implementations§
Source§impl NnrpClient
impl NnrpClient
pub async fn connect_tcp( addr: impl ToSocketAddrs, config: NnrpClientConfig, ) -> Result<Self, RuntimeError>
pub async fn connect_quic( _endpoint: &str, config: NnrpClientConfig, ) -> Result<Self, RuntimeError>
pub fn from_transport<T>(
transport: T,
config: NnrpClientConfig,
) -> Result<Self, RuntimeError>where
T: FramedTransport + 'static,
pub fn from_boxed_transport( transport: BoxedFramedTransport, config: NnrpClientConfig, ) -> Result<Self, RuntimeError>
pub async fn open_session(self) -> Result<NnrpClientSession, RuntimeError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NnrpClient
impl !Sync for NnrpClient
impl !UnwindSafe for NnrpClient
impl Freeze for NnrpClient
impl Send for NnrpClient
impl Unpin for NnrpClient
impl UnsafeUnpin for NnrpClient
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