pub struct DiffClient { /* private fields */ }Implementations§
Source§impl DiffClient
impl DiffClient
pub async fn connect( url: &str, options: ClientOptions, ) -> Result<Self, ClientError>
pub async fn connect_with_headers( url: &str, options: ClientOptions, headers: Vec<ConnectionHeader>, ) -> Result<Self, ClientError>
pub async fn from_transport( transport: LocalClientTransport, options: ClientOptions, ) -> Result<Self, ClientError>
pub async fn from_messages( transport: impl ClientMessageTransport, options: ClientOptions, ) -> Result<Self, ClientError>
pub fn spawn( transport: impl ClientMessageTransport, options: ClientOptions, ) -> Self
pub fn state(&self) -> Arc<ClientState> ⓘ
pub fn subscribe(&self) -> ClientSubscription
pub async fn set_scope(&self, scope: DiffScope) -> Result<(), ClientError>
pub async fn apply(&self, action: RepositoryAction) -> Result<(), ClientError>
pub async fn refresh(&self) -> Result<(), ClientError>
pub async fn handle(&self, event: DiffReviewEvent) -> Result<(), ClientError>
pub fn dispatch( &self, event: DiffReviewEvent, ) -> Result<Option<Receiver<Result<(), ClientError>>>, ClientError>
pub async fn close(self) -> Result<(), ClientError>
Trait Implementations§
Source§impl Clone for DiffClient
impl Clone for DiffClient
Source§fn clone(&self) -> DiffClient
fn clone(&self) -> DiffClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DiffClient
impl RefUnwindSafe for DiffClient
impl Send for DiffClient
impl Sync for DiffClient
impl Unpin for DiffClient
impl UnsafeUnpin for DiffClient
impl UnwindSafe for DiffClient
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