pub struct WireServer { /* private fields */ }
Implementations§
Source§impl WireServer
impl WireServer
pub fn new(config: WireServerConfig) -> Self
pub fn register_capability(&self, id: i64, capability: Arc<dyn WireCapability>)
pub async fn run(self) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for WireServer
impl Clone for WireServer
Source§fn clone(&self) -> WireServer
fn clone(&self) -> WireServer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for WireServer
impl !RefUnwindSafe for WireServer
impl Send for WireServer
impl Sync for WireServer
impl Unpin for WireServer
impl !UnwindSafe for WireServer
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