pub struct UnixSocketMcpTransport { /* private fields */ }Implementations§
Source§impl UnixSocketMcpTransport
impl UnixSocketMcpTransport
pub fn bind(path: UnixSocketPath) -> Result<Self, UnixSocketTransportError>
pub fn path(&self) -> &Path
Sourcepub fn spawn<T>(self, server: T) -> UnixSocketServer
pub fn spawn<T>(self, server: T) -> UnixSocketServer
Serve connections until the returned server is dropped.
Auto Trait Implementations§
impl !Freeze for UnixSocketMcpTransport
impl RefUnwindSafe for UnixSocketMcpTransport
impl Send for UnixSocketMcpTransport
impl Sync for UnixSocketMcpTransport
impl Unpin for UnixSocketMcpTransport
impl UnsafeUnpin for UnixSocketMcpTransport
impl UnwindSafe for UnixSocketMcpTransport
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