pub struct Drawing {
pub client: Arc<Client>,
}Fields§
§client: Arc<Client>Implementations§
Source§impl Drawing
impl Drawing
pub fn add_direction_stream( &self, direction: (f64, f64, f64), reference_frame: &ReferenceFrame, length: f32, visible: bool, ) -> Result<Stream<Line>, RpcError>
pub fn add_direction( &self, direction: (f64, f64, f64), reference_frame: &ReferenceFrame, length: f32, visible: bool, ) -> Result<Line, RpcError>
Source§impl Drawing
impl Drawing
pub fn add_direction_from_com_stream( &self, direction: (f64, f64, f64), reference_frame: &ReferenceFrame, length: f32, visible: bool, ) -> Result<Stream<Line>, RpcError>
pub fn add_direction_from_com( &self, direction: (f64, f64, f64), reference_frame: &ReferenceFrame, length: f32, visible: bool, ) -> Result<Line, RpcError>
Source§impl Drawing
impl Drawing
pub fn add_line_stream( &self, start: (f64, f64, f64), end: (f64, f64, f64), reference_frame: &ReferenceFrame, visible: bool, ) -> Result<Stream<Line>, RpcError>
pub fn add_line( &self, start: (f64, f64, f64), end: (f64, f64, f64), reference_frame: &ReferenceFrame, visible: bool, ) -> Result<Line, RpcError>
Source§impl Drawing
impl Drawing
pub fn add_polygon_stream( &self, vertices: Vec<(f64, f64, f64)>, reference_frame: &ReferenceFrame, visible: bool, ) -> Result<Stream<Polygon>, RpcError>
pub fn add_polygon( &self, vertices: Vec<(f64, f64, f64)>, reference_frame: &ReferenceFrame, visible: bool, ) -> Result<Polygon, RpcError>
Source§impl Drawing
impl Drawing
pub fn add_text_stream( &self, text: String, reference_frame: &ReferenceFrame, position: (f64, f64, f64), rotation: (f64, f64, f64, f64), visible: bool, ) -> Result<Stream<Text>, RpcError>
pub fn add_text( &self, text: String, reference_frame: &ReferenceFrame, position: (f64, f64, f64), rotation: (f64, f64, f64, f64), visible: bool, ) -> Result<Text, RpcError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Drawing
impl RefUnwindSafe for Drawing
impl Send for Drawing
impl Sync for Drawing
impl Unpin for Drawing
impl UnwindSafe for Drawing
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