pub struct MainbrainSession { /* private fields */ }Expand description
This allows communicating with the Mainbrain over HTTP RPC.
This replaced the old ROS layer for camera -> mainbrain command and control communication from flydra.
Implementations§
Source§impl MainbrainSession
impl MainbrainSession
pub async fn get_remote_info( &mut self, raw_cam_name: &RawCamName, ) -> Result<RemoteCameraInfoResponse, Error>
pub async fn post_callback_message( &mut self, msg: BraidHttpApiCallback, ) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for MainbrainSession
impl Clone for MainbrainSession
Source§fn clone(&self) -> MainbrainSession
fn clone(&self) -> MainbrainSession
Returns a duplicate 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 moreAuto Trait Implementations§
impl !Freeze for MainbrainSession
impl RefUnwindSafe for MainbrainSession
impl Send for MainbrainSession
impl Sync for MainbrainSession
impl Unpin for MainbrainSession
impl UnsafeUnpin for MainbrainSession
impl UnwindSafe for MainbrainSession
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