pub struct Unix {
pub path: String,
pub capacity: usize,
}Fields§
§path: String§capacity: usizeTrait Implementations§
Source§impl ServerTrait for Unix
impl ServerTrait for Unix
Source§async fn start(&self) -> Result<()>
async fn start(&self) -> Result<()>
start the pub-sub server over a unix socket
use crate::simple_pub_sub::server::ServerTrait as _;
let server = simple_pub_sub::server::ServerType::Unix(simple_pub_sub::server::Unix {
path: "/tmp/sample.sock".to_string(),
capacity: 1024,
});
let result = server.start();Auto Trait Implementations§
impl Freeze for Unix
impl RefUnwindSafe for Unix
impl Send for Unix
impl Sync for Unix
impl Unpin for Unix
impl UnwindSafe for Unix
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