pub struct Server { /* private fields */ }Implementations§
Source§impl Server
impl Server
pub async fn get_next_request(&mut self) -> Option<Request>
pub async fn send_response_for_request( &self, req_id: u64, res: ResponseData, ) -> Result<(), SendError<()>>
pub async fn send_streaming_response_for_request( &self, req_id: u64, complete: bool, res: ResponseData, ) -> Result<(), SendError<()>>
pub async fn get_writable_filesystem( &self, token: FsToken, ) -> Result<ReadWriteFS>
pub async fn get_readonly_filesystem( &self, token: FsToken, ) -> Result<ReadOnlyFS>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Server
impl !RefUnwindSafe for Server
impl !UnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin for Server
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