Struct moras::remote::client::RpcClientImpl
source · pub struct RpcClientImpl {
server_addr: Mutex<SocketAddr>,
client: Option<EditorClient<Channel>>,
}
Fields§
§server_addr: Mutex<SocketAddr>
§client: Option<EditorClient<Channel>>
Implementations§
source§impl RpcClientImpl
impl RpcClientImpl
fn should_not_running(&self) -> Result<(), Box<dyn Error>>
fn should_running(&self) -> Result<(), Box<dyn Error>>
pub fn start(&mut self) -> Result<(), Box<dyn Error>>
pub fn stop(&mut self) -> Result<(), Box<dyn Error>>
pub fn set_server_addr( &mut self, server_addr: SocketAddr, ) -> Result<(), Box<dyn Error>>
pub async fn send_disconnect(&mut self) -> Result<(), Box<dyn Error>>
pub async fn send_set_cursor( &mut self, row: u64, col: u64, ) -> Result<(), Box<dyn Error>>
pub async fn send_get_content( &mut self, version: u64, ) -> Result<GetContentReply, Box<dyn Error>>
pub async fn send_update_content( &mut self, version: u64, history: &Modification, ) -> Result<UpdateContentReply, Box<dyn Error>>
Trait Implementations§
source§impl Default for RpcClientImpl
impl Default for RpcClientImpl
Auto Trait Implementations§
impl !Freeze for RpcClientImpl
impl !RefUnwindSafe for RpcClientImpl
impl Send for RpcClientImpl
impl Sync for RpcClientImpl
impl Unpin for RpcClientImpl
impl !UnwindSafe for RpcClientImpl
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.