pub struct ArborServer { /* private fields */ }Expand description
The Arbor WebSocket server.
Implementations§
Source§impl ArborServer
impl ArborServer
Sourcepub fn new(graph: ArborGraph, config: ServerConfig) -> Self
pub fn new(graph: ArborGraph, config: ServerConfig) -> Self
Creates a new server with the given graph.
Creates a new server with an existing shared graph handle.
Sourcepub fn graph(&self) -> Arc<RwLock<ArborGraph>>
pub fn graph(&self) -> Arc<RwLock<ArborGraph>>
Returns a handle to the shared graph for updates.
Auto Trait Implementations§
impl Freeze for ArborServer
impl !RefUnwindSafe for ArborServer
impl Send for ArborServer
impl Sync for ArborServer
impl Unpin for ArborServer
impl UnsafeUnpin for ArborServer
impl !UnwindSafe for ArborServer
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