Struct sshx_server::grpc::GrpcServer
source · pub struct GrpcServer(/* private fields */);
Expand description
Server that handles gRPC requests from the sshx command-line client.
Implementations§
source§impl GrpcServer
impl GrpcServer
sourcepub fn new(state: Arc<ServerState>) -> Self
pub fn new(state: Arc<ServerState>) -> Self
Construct a new GrpcServer
instance with associated state.
Trait Implementations§
source§impl Clone for GrpcServer
impl Clone for GrpcServer
source§fn clone(&self) -> GrpcServer
fn clone(&self) -> GrpcServer
Returns a copy 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 moresource§impl SshxService for GrpcServer
impl SshxService for GrpcServer
source§type ChannelStream = ReceiverStream<Result<ServerUpdate, Status>>
type ChannelStream = ReceiverStream<Result<ServerUpdate, Status>>
Server streaming response type for the Channel method.
source§fn open<'life0, 'async_trait>(
&'life0 self,
request: Request<OpenRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<OpenResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn open<'life0, 'async_trait>(
&'life0 self,
request: Request<OpenRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<OpenResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a new SSH session for a given computer.
source§fn channel<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<ClientUpdate>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ChannelStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn channel<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<ClientUpdate>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ChannelStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stream real-time commands and terminal outputs to the session.
Auto Trait Implementations§
impl Freeze for GrpcServer
impl !RefUnwindSafe for GrpcServer
impl Send for GrpcServer
impl Sync for GrpcServer
impl Unpin for GrpcServer
impl !UnwindSafe for GrpcServer
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request